const User = require('mongoose').model('User');

export.create = (req, res, next) => {

  let user = new User(req.body);
  user.save((err) => {
    if (err) {
      return next(err);
    } else {
      res.json(err);
    }
  });
};
